package com.stu.manager.studentscoremanagersys.enums;

import lombok.Data;


public enum CodeEnum {
    SUCCESS(200,"请求成功"),
    DB_ERROR(10000,"数据库错误"),
    DUPLIT_KEY_ERROR(10010,"数据库主键唯一性约束错误"),
    BIZ_ERROR(20000,"业务异常"),
    PARA_ERROR(20000,"参数错误"),
    AUTH_ERROR(30000,"权限不足"),
    SYS_ERROR(90000,"系统错误"),
    REQUEST_ERROR(91000,"请求方式错误");

    CodeEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    private  Integer code;
    private  String message;

    public Integer getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
